﻿using System.Data;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace HRMService
{
    // NOTE: If you change the interface name "ILanguage" here, you must also update the reference to "ILanguage" in App.config.
    [ServiceContract(Namespace = "http://HRMService")]
    public interface ILanguage
    {
        [OperationContract]
        int Language_Using(int LanguageID);

        [OperationContract]
        DataSet Language_GetAll();

        [OperationContract]
        LanguageInfo Language_GetInfo(int LanguageID);

        [OperationContract]
        DataSet Language_GetList(out int ItemCount, int currentPage, int pageSize);

        [OperationContract]
        int Language_Insert(LanguageInfo eInfo);

        [OperationContract]
        bool Language_Update(LanguageInfo eInfo);

        [OperationContract]
        bool Language_Delete(int LanguageID);
    }

    [DataContract(Namespace = "http://HRMService")]
    public class LanguageInfo
    {
        int _ID;
        [DataMember]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        string _Name;
        [DataMember]
        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }
    }
}

